import Mock from "mockjs";

Mock.setup({
    // timeout  控制网络延时
    timeout: "2000|5000"
})

Mock.mock('/getList', {
    list: [
        {
            name: "张三"
        },
        {
            name: "李四"
        },
        {
            name: "王五"
        }
    ]
})

// @cname  @name  @ctitle
Mock.mock('/getAllList', {
   "list|100":  [
       {
         name: "@ctitle",
         img: "@Image(100)",
         "id|+1": 1
       }
   ]
})